import API from "@/utils/request"



export function getPageCompany({pageNum,pageSize,name}){
    return API.get('/company/page',{
        params:{
            pageNum,
            pageSize,
            name
        }
    })
}
export function delBatchCompany(arr){
    return API.delete('/company/delBatch', {data:arr})
}

export function saveCompany(company){
    return API.post('/company',company)
}

export function updateCompany(company){
    return API.put('/company',company)
}

export function removeCompany(id){
    return API.delete(`/company/${id}`)
}

